package com.itheima.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * @className OrderSubmitDto
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderSubmitDto {

    private String name;//姓名
    private String sex;//性别
    private String idCard;//身份证号
    @JsonProperty("telephone")
    private String phoneNumber;//手机号
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate orderDate;//预约日期
    private String validateCode;//验证码
    private Integer setmealId;//套餐id

}
